package com.he.ymw.service.impl;

import com.he.ymw.dao.NewsDao;
import com.he.ymw.pojo.News;
import com.he.ymw.service.NewsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NewsServiceImpl implements NewsService {

    @Resource
    NewsDao newsDao;

    @Override
    public List<News> findNews5() throws Exception {
        return newsDao.findNews5();
    }
}
